package com.extension.company.view.adapter;

import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.extension.company.admin.R;

import java.util.List;

public class PromotionOrderAdapter extends BaseRecyclerAdapter<String, PromotionOrderAdapter.Holder> {

    private Context context;
    private List<String> list;

    public PromotionOrderAdapter(Context context, List<String> list) {
        super(context, list);
        this.context = context;
        this.list = list;
    }

    @Override
    public PromotionOrderAdapter.Holder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(context).inflate(R.layout.promotionorder_item, parent, false);
        Holder holder = new Holder(view);
        return holder;
    }

    class Holder extends RecyclerView.ViewHolder {

        public Holder(@NonNull View itemView) {
            super(itemView);
        }
    }
}
